/**
 * Slider 组件的主题配置
 */

import type { ComponentToken } from 'antd/es/slider/style';

export const sliderThemeConfig: Partial<ComponentToken> = {
  controlSize: 4,
  railSize: 4,
  handleSize: 12,
  handleSizeHover: 14,
  dotSize: 8,
  railBg: '#f5f5f5',
  railHoverBg: '#e1e1e1',
  trackBg: '#1890ff',
  trackHoverBg: '#40a9ff',
  handleColor: '#1890ff',
  handleActiveColor: '#096dd9',
};

export const getSliderTheme = (
  customConfig?: Partial<ComponentToken>
): Partial<ComponentToken> => {
  return {
    ...sliderThemeConfig,
    ...customConfig,
  };
};

export type { ComponentToken as SliderComponentToken } from 'antd/es/slider/style';

